package org.stvd.entities.admin;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import org.stvd.entities.base.BaseEntity;

@Entity
@Table(name = "KEYTABLE")
public class Keytable extends BaseEntity {

    private static final long serialVersionUID = 5785841299336865991L;
    /*
     * 序列主键名称
     */
    private String keyname;
    /*
     * 序列值
     */
    private Integer keyvalue;
    /*
     * 每次增加的步长，默认是1
     */
    private Integer stepvalue = 1;

    @Id
    @Column(name="keyname")
    public String getKeyname(){
        return keyname;
    }

    public void setKeyname(String keyname){
        this.keyname=keyname;
    }

    @Column(name="keyvalue")
    public Integer getKeyvalue(){
        return keyvalue;
    }

    public void setKeyvalue(Integer keyvalue){
        this.keyvalue=keyvalue;
    }

    @Column(name="stepvalue")
    public Integer getStepvalue(){
        return stepvalue;
    }

    public void setStepvalue(Integer stepvalue){
        this.stepvalue=stepvalue;
    }

}
